<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script language="javascript" src="js/jquery.min182.js"></script>
<script language="javascript" src="js/jquery.form.js"></script>
<script language="javascript" src="js/json.parse.js"></script>
<script src="js/jquery.js"></script>
<script language="javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<title>驴行天下</title>
<SCRIPT LANGUAGE="javascript"> 
function adaptive(){
	var wight=document.body.clientWidth;
	var Height=document.body.clientHeight;
	
	if(wight>350){
		document.getElementById("phone").style.marginTop = 180;
		document.getElementById("phone").style.height = 60;
		
		document.getElementById("mima").style.marginTop = 20;
		document.getElementById("mima").style.height = 60;
		
		document.getElementById("submit").style.marginTop = 20;
		document.getElementById("submit").style.height = 60;
	}
	
	document.getElementById("body").style.display="";
}
</SCRIPT> 
</head>
<body style="margin:0;padding:0;display:none;background-image:url(picture1/main_baijing.png);background-color:#ffffff;background-repeat:repeat;background-size:cover;" id="body" onload="adaptive()">
	<?php 
	session_start();
	$bigtype=$_REQUEST['bigtype']; 
	if(strlen($bigtype)==0){
		$bigtype=1;
	}
	if($bigtype==1){
	?>
	<form action="getmessage_all.php" method="post" enctype="multipart/form-data" id="upload_user_img">
		<input style="opacity: 0;" name="bigtype" value="6"></input>
		
		<input type="number" style="width:92%;height:45px;background-color:#FFFFFF;line-height:45px;color:#000000;font-family:微软雅黑;font-size:18px;border:0; text-align:left;border-radius:6px;margin-left:4%;margin-top:150px;padding:0 0 0 7%;" placeholder="请输入手机号码" value="<?php echo $_SESSION['phone'];?>" id="phone" name="phone"></input>
		
		<input type="password" style="width:92%;height:45px;background-color:#FFFFFF;line-height:45px;color:#000000;font-family:微软雅黑;font-size:18px;border:0; text-align:left;border-radius:6px;margin-left:4%;margin-top:15px;padding:0 0 0 7%;" placeholder="请输入密码" id="mima" name="mima"></input>
		
		<input type="submit" style="width:92%;height:45px;background-color:#E50011;line-height:45px;color:#FFFFFF;font-family:微软雅黑;font-size:18px;border:0; text-align:center ;border-radius:6px;margin-left:4%;margin-top:15px;" value="登录" id="submit"></input>
	</form>
	<a style="clear:left;float:right;color:#FFFFFF;font-family:微软雅黑;font-size:16px;margin:0px 4% 0px 0;display:block;margin-top:5px;" onclick="huoqv_mima();">第一次登录或忘记密码，请点击这里？</a>
	<?php }?>
	<?php if($bigtype==2){?>
	<form action="getmessage_all.php" method="post" enctype="multipart/form-data" id="upload_user_img">
		<input style="opacity: 0;" name="bigtype" value="16"></input>
		<input type="number" style="width:92%;height:45px;background-color:#FFFFFF;line-height:45px;color:#000000;font-family:微软雅黑;font-size:18px;border:0; text-align:left;border-radius:6px;margin-left:4%;margin-top:150px;padding:0 0 0 7%;" placeholder="请输入手机号码" value="<?php echo $_SESSION['phone'];?>" id="phone" name="phone"></input>
		
		<input type="password" style="width:92%;height:45px;background-color:#FFFFFF;line-height:45px;color:#000000;font-family:微软雅黑;font-size:18px;border:0; text-align:left;border-radius:6px;margin-left:4%;margin-top:15px;padding:0 0 0 7%;" placeholder="请输入新密码" id="mima" value="<?php echo $_SESSION['mima'];?>" name="mima"></input>
		
		<input type="button" style="float:right;width:30%;height:35px;background-color:#E50011;line-height:35px;margin:15px 4% 0 0;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:0; text-align:center ;border-radius:6px;" value="获取验证码" onclick="have_yanz();"></input>
		
		<input type="number" style="width:92%;height:45px;background-color:#FFFFFF;line-height:45px;color:#000000;font-family:微软雅黑;font-size:18px;border:0; text-align:left;border-radius:6px;margin-left:4%;margin-top:15px;padding:0 0 0 7%;" placeholder="请输入验证码" id="yanzhengma" name="yanzhengma"></input>
		
		<input type="submit" style="width:92%;height:45px;background-color:#E50011;line-height:45px;color:#FFFFFF;font-family:微软雅黑;font-size:18px;border:0; text-align:center ;border-radius:6px;margin-left:4%;margin-top:15px;" value="登录" id="submit"></input>
	</form>	
	<?php }?>
</body>
<SCRIPT>
function huoqv_mima(){
	phone=document.getElementById("phone").value;
	window.location.href='getmessage_all.php?bigtype=14&phone='+phone;
}
function have_yanz(){
	phone=document.getElementById("phone").value
	//通知服务器端session，记录phone
	var url="getmessage_all.php?bigtype=15&phone="+phone;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert('包含验证码的短信已成功发送，请注意查收！');
				//window.location.href='pay.php?id='+data['id']+"&id_difang=<? echo $id_difang;?>";
			}
		}
	}); 	
}
</SCRIPT>




